<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>第一章</title>
    <script src="http://apps.bdimg.com/libs/underscore.js/1.7.0/underscore-min.js"></script>
    <script src="http://apps.bdimg.com/libs/zepto/1.1.4/zepto.min.js"></script>
    <script src="http://apps.bdimg.com/libs/backbone.js/1.1.2/backbone-min.js"></script>
</head>
<body>

</body>
<script>
    var _obj = {
        'title':'task1',
        'decriptton':1
    }
    //用backbone使用
    var ToDoItem = Backbone.Model.extend({

    })
    var todoItem = new ToDoItem(_obj);
    alert(todoItem.get('title'))
    alert(todoItem.set('title',1))
    alert(todoItem.toJSON())

</script>
</html>